package xyz.csmcool.imuser.entity.vo;

import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;


import javax.validation.constraints.*;

/**
 * @author 什锦
 * @Package xyz.csmcool.imuser.entity.vo
 * @since 2022/8/4 19:23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfoVo {

    private Integer id;

    @Length(min = 0,max = 15,message = "用户名长度应该不超过15")
    private String userName;

    @Length(min = 0,max = 5,message = "你的姓氏应该不超过5")
    private String firstName;

    @Length(min = 0,max = 5,message = "名字应该不超过5")
    private String lastName;

    @Min(value = 0,message = "不合法数字")
    @Max(value = 3,message = "不合法数字")
    private Integer sex;

    private String avatar;

    @Length(min = 0,max = 200,message = "个性签名应该不超过200")
    private String about;

    @Length(min = 1,max = 3,message = "国家代码应该为2")
    private String country;
}
